package org.itboys.store.entity;
import java.util.List;

import org.itboys.mongodb.entity.BaseLongIdEntity;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Indexed;

/**
 * Created by huml on 2016/4/8.
 * 产品拥有的规格种类
 */
@Entity(value="StoreProductSpec", noClassnameStored = true)
public class ProductSpec extends BaseLongIdEntity{

    private static final long serialVersionUID = -4349917343655911081L;
    @Indexed(unique = true)
    private Long productId;//产品id
    private List<Long> productCategorySpecIds;//分类下的规格id集合

    private Integer isDeleted = 0;

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public List<Long> getProductCategorySpecIds() {
        return productCategorySpecIds;
    }

    public void setProductCategorySpecIds(List<Long> productCategorySpecIds) {
        this.productCategorySpecIds = productCategorySpecIds;
    }
}
